projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cdf4e0
)
i2c: muxes: pca954x: clarify enable field
author
Luca Ceresoli
<
[email protected]
>
Tue, 9 Apr 2019 06:57:42 +0000
(08:57 +0200)
committer
Heiko Schocher
<
[email protected]
>
Thu, 11 Apr 2019 13:21:33 +0000
(15:21 +0200)
The chip_desc.enable field is used only for muxes, not for switches.
Document it and remove the unused values.
Signed-off-by: Luca Ceresoli <
[email protected]
>
Reviewed-by: Heiko Schocher <
[email protected]
>
Acked-by: Michal Simek <
[email protected]
>
Reviewed-by: Heiko Schocher<
[email protected]
>
drivers/i2c/muxes/pca954x.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/muxes/pca954x.c
b/drivers/i2c/muxes/pca954x.c
index bd4e9abe5f3c0ca6d913aed522e3dcc868ff6e25..5669753ce14d2c280ebfbbc4bc97f23278f8d6b7 100644
(file)
--- a/
drivers/i2c/muxes/pca954x.c
+++ b/
drivers/i2c/muxes/pca954x.c
@@
-22,7
+22,7
@@
enum pca_type {
};
struct chip_desc {
- u8 enable;
+ u8 enable;
/* Enable mask in ctl register (used for muxes only) */
enum muxtype {
pca954x_ismux = 0,
pca954x_isswi,
@@
-48,12
+48,10
@@
static const struct chip_desc chips[] = {
.width = 8,
},
[PCA9548] = {
- .enable = 0x8,
.muxtype = pca954x_isswi,
.width = 8,
},
[PCA9646] = {
- .enable = 0x0,
.muxtype = pca954x_isswi,
.width = 4,
},